int ledPin = 13;
int readpin = 7;
int val = 0;

void setup() {
  
  pinMode(ledPin, OUTPUT); // pin 13 is our out pin
  pinMode(readpin, INPUT); // pin 7 will read in
  Serial.begin(115200);
  // Serial.begin(9600); // For Arduino Serial Monitor
}

void loop() {
  val = digitalRead(readpin);
  if( val == HIGH ){
     digitalWrite(ledPin, HIGH); // turn on led
     Serial.print("Goldeneye ");
   }
   else
   {
     digitalWrite(ledPin, LOW); 
   }
  delay(100); // 10ms
  
}
